#include <glib.h>

#define RANGE 0.002
#define RULER 1

int main(int argc, char *argv[])
{
	GTimer *timer;
	gdouble time;
	guint32 t, i, k;

	timer = g_timer_new();
	g_timer_stop(timer);
	time = 0;
	t = 1;

	for (k=0; k<10; k++, t*=10) {
		g_timer_start(timer);	
	
		for (i=0; i<t; i++);
	
		g_timer_stop(timer);
		time = g_timer_elapsed(timer, NULL);
	
		g_print("Time: %f\n", time);
		g_print("t:    %u\n", t);
	}

	g_timer_destroy(timer);
	return 0;
}
